Scan status text is truncated in narrow terminal width - #18
Merged
mowi12 merged 2 commits intoMar 24, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Improves the Textual UI’s scan status header so it remains readable in narrow terminals by switching to a stacked (two-row) layout and optionally using a compact status text variant.
Changes:
- Add a “stacked” layout mode for the scan status row in
ui.tcss. - Track full vs compact scan status strings and re-evaluate layout on terminal resize in
ui.py. - Minor regex tweak for parsing section headers in
config.py.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/mr_manager/ui.tcss |
Adds .stacked styling to switch the scan status row from horizontal to vertical layout. |
src/mr_manager/ui.py |
Implements responsive scan status text/layout logic and hooks it to resize events. |
src/mr_manager/config.py |
Updates the section header regex (no functional UI impact). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
mowi12
force-pushed
the
fix/17-bug-scan-status-text-is-truncated-in-narrow-terminal-width
branch
from
March 24, 2026 20:23
855ac6f to
fb55fc3
Compare
mowi12
deleted the
fix/17-bug-scan-status-text-is-truncated-in-narrow-terminal-width
branch
March 24, 2026 20:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Scan status text is truncated in narrow terminals. To stop this behavior this PR implement a dynamic behavior.
When the width gets to narrow the status text will be displayed in two rows and even shortens if even narrower.
Related Issue
Closes #17
How to Test
uv run mr-manager.Checklist
Either tick the items or cross out those that do not apply (using
example text) and provide a brief explanation why they do not apply.Author